/**
 * Created by asus on 2017/4/28.
 */
import actions from './action'
import mutations from './mutation'

let state = {
  totalCount: 0,
  currentPage: 1,
  news: [],
  editingNews: null,
  pageModel: 'ADD',
  searchText: ''
}


const getters = {
  getNews: state => state.news,
  getEditingNews: state => state.editingNews,
  getNewsPageModel: state => state.pageModel,
  getSysNewsCurrentPage: state => state.currentPage,
  getSysNewsTotalCount: state => state.totalCount,
  getNewsSearchText: state => state.searchText
}

export default {
  state,
  getters,
  actions,
  mutations
};

